﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DotLink;
using DotLink.Controllers;

namespace JAVALI_Cardapio_Atendimento
{
    public partial class FrmMenuInicial : Form
    {
        private Form splashScreen;

        public FrmMenuInicial()
        {
            this.Visible = false;
            splashScreen = new Splash();
            splashScreen.Show();
            InitializeComponent();
            try
            {
                Bag.Initializer();
            }
            catch{}
            splashScreen.Hide();
            this.Visible = true;
        }

        private void linkSair_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Application.Exit();
        }

        private void btnMenuCardapio_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmMenuCardapio menuCardapio = new FrmMenuCardapio();
            menuCardapio.Before = this;
            menuCardapio.Show();
        }

        private void btnMenuAtendimento_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmMenuAtendimento menuAtendimento = new FrmMenuAtendimento();
            menuAtendimento.Before = this;
            menuAtendimento.Show();
        }

        private void lblNomeSistema_Click(object sender, EventArgs e)
        {
            splashScreen.Show();
        }
    }
}
